//
// Created by Administrator on 2025/9/18.
//

#include "Student.h"

void DpSingle::Student::printStudentList() {
    Student * p = head;
    while(p != NULL){
        std::cout << p->name << std::endl;
        p = p->next;
    }
}

void DpSingle::Student::deleteStudentList(){
    Student * p = head;
    while(head){
        head = p->next;
        delete p;
        p = head;
    }
}

DpSingle::Student * DpSingle::Student::head = NULL;